package com.cswangdao.mapper;

import com.cswangdao.domain.dto.CommentPageDTO;
import com.cswangdao.domain.model.MarketComment;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MarketCommentMapper {

    Page<MarketComment> pageQueryInfo(CommentPageDTO pageDTO);

    @Delete("delete from market_comment where id = #{id} ")
    void deleteById(Integer id);

    List<MarketComment> getByGoodsId(@Param("goodsId") Integer goodsId);
}